package com.mdlib.helper.module.send.order.activitys;

import android.content.Context;
import android.content.Intent;

import com.ljlib.core.base.BaseCommonActivity;
import com.ljlib.core.base.BaseFragment;
import com.mdlib.helper.common.ContentType;
import com.mdlib.helper.model.entity.OrderEntity;
import com.mdlib.helper.ui.UIHelper;
import com.mdlib.helper.ui.fragments.sect.my.SendOrdersDetailsFragment;

/**
 * 作者：HQY on 16/12/15 13:43
 * 邮箱：hqy_xz@126.com
 */

public class OrderDetailsActivity extends BaseCommonActivity {
    public static Intent newIntent(Context context, ContentType contentType, String busId) {
        Intent intent = new Intent(context, OrderDetailsActivity.class);
        intent.putExtra(UIHelper.EXTRA_CONTENT_TYPE, contentType);
        intent.putExtra(UIHelper.BUS_ID, busId);
        return intent;
    }
    @Override
    protected BaseFragment getFirstFragment() {
        return SendOrdersDetailsFragment.newInstance( getIntent().getExtras().getString(UIHelper.BUS_ID));
    }
}
